<?php

declare(strict_types=1);

namespace App\CustHub\Controller;

use App\CustHub\Annotation\ApiAuth;
use App\CustHub\Annotation\VerifySignature;
use App\CustHub\Service\ChOrderService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\PostMapping;

#[Controller(prefix: 'ch/order'),ApiAuth,VerifySignature]
class OrderController extends BaseController
{

    #[Inject]
    protected ChOrderService $service;

    /**
     * 充值订单列表
     * @return \Psr\Http\Message\ResponseInterface
     * @throws \Psr\Container\ContainerExceptionInterface
     * @throws \Psr\Container\NotFoundExceptionInterface
     */
    #[PostMapping('rechargeOrderList')]
    public function rechargeOrderList(): \Psr\Http\Message\ResponseInterface
    {
        return $this->success($this->service->rechargeOrderList($this->request->all()));
    }
}